export const UserStatus = {
  1: "正常",
  2: "停用",
};

export function mapToOptions(map) {
  return Object.entries(map).map(([v, k]) => {
    return {
      label: k,
      value: String(v),
    };
  });
}

export const StorageKey = {
  token: "token",
  userInfo: "userInfo",
};
